<template>
    <div>
        列表页
        <p>count:{{ count }}</p>
        <p>doubleCount:{{ doubleCount }}</p>
        <button @tap="counterStore.addCount">count++</button>
        <button @tap="count++">count++</button>
    </div>
</template>

<script setup>
    import {storeToRefs} from "pinia"
    import { ref ,onMounted,onUnmounted} from 'vue'
    import { onLoad,onReady,onShow,onHide,onUnload} from '@dcloudio/uni-app'
    import { useCounterStore } from '@/stores/count';
    import * as obj from "axios"
    import asios from "axios"

    const title = ref('Hello')
    const counterStore = useCounterStore();
    const {count,doubleCount} = storeToRefs(counterStore);

    console.log(111,obj);
    console.log(111,asios);




    /* onLoad(() =>{
			console.log("微信小程序生命周期:onLoad");	
    })
    onReady(() =>{
        console.log("微信小程序生命周期:onReady");	
    })
    onShow(() =>{
        console.log("微信小程序生命周期:onShow");	
    })
    onHide(() =>{
        console.log("微信小程序生命周期:onHide");	
    })
    onUnload(() =>{
        console.log("微信小程序生命周期:onUnload");	
    })
    onMounted(() => {
        console.log("组件生命周期:onMounted");
    })
    onUnmounted(() => {
        console.log("组件生命周期:onUnmounted");
    }) */
</script>

<style lang="scss" scoped>

</style>